package com.jimmy.medical.service;

import com.jimmy.medical.base.JpaSpecificationService;
import com.jimmy.medical.entity.User;
import com.jimmy.medical.model.UserStat;
import com.jimmy.medical.repository.UserRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * 用户Service
 * @author jimmy
 */
public interface IUserService extends JpaSpecificationService<UserRepository, UserRepository, User, Long> {
    User checkUser(String username, String password);

    Page<User> findAll(Pageable pageable, String city, Long hospital, String realName);

    Page<UserStat> findUserWithStat(Pageable pageable, String city, Long hospital, String realName);
}
